org.eclipse.vtp.framework.common
Interface IDecimalObject

All Superinterfaces:
IDataObject

public interface IDecimalObject
extends IDataObject

Represents a dynamic, fixed-point decimal number.

Author:
Lonnie Pryor

Field Summary
static java.lang.String TYPE_NAME
          The name of the decimal type.
 
Method Summary
 java.math.BigDecimal getValue()
          Returns the current value of this data object.
 boolean setValue(java.lang.Object value)
          Sets the value of this data object to the specified value.
 
Methods inherited from interface org.eclipse.vtp.framework.common.IDataObject
getField, getType, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isReadOnly, setField, toString
 

Field Detail

TYPE_NAME

static final java.lang.String TYPE_NAME
The name of the decimal type.

See Also:
Constant Field Values
Method Detail

getValue

java.math.BigDecimal getValue()
Returns the current value of this data object.

Returns:
The current value of this data object.

setValue

boolean setValue(java.lang.Object value)
                 throws java.lang.IllegalStateException
Sets the value of this data object to the specified value.

This method will attempt to coerce the supplied value into a Java BigDecimal object.

Parameters:
value - The value to assign to this data object.
Returns:
False if the supplied value cannot be coerced into a Java BigDecimal.
Throws:
java.lang.IllegalStateException - If this object is read-only.